﻿@model  Forest.Cat.Admin.Models.Resumes.WorkExperienceListModel
@{
    ViewBag.Title = "工作经验";
    Layout = "~/Administration/Views/Shared/_JobseekerRoot.cshtml";
}
<div class="Work_experience">
    <div class="Work_experience_box">
        @foreach (var item in Model.WorkExperiences)
        {
            <div class="experiece01">
                <div class="experiece_title">
                    <h3>@item.JobTitle</h3>
                    @using (Html.BeginForm("WorkDelete", "Resume", FormMethod.Post))
                    {
                        <span>@Html.ActionLink("[编辑]", "WorkEdit", new { id = item.Id, returnUrl = Request.Url.PathAndQuery }, null)
                            @Html.Hidden("WorkId", item.Id)
                            @Html.Hidden("returnUrl", Request.Url.PathAndQuery)
                            <input type="submit" value="删除" onclick="return confirm('确定删除？');" />
                        </span>
                    }
                    <div class="cr">
                    </div>
                </div>
                <p>
                    @item.CompanyName @item.Department</p>
                <p>
                    @item.StartDate.ToString("yyyy年MM月")
                    @if (item.EndDate.HasValue)
                    {
                        <a>-- @item.EndDate.Value.ToString("yyyy年MM月")</a>
                    }
                </p>
                <div class="miaoshu">
                    @item.Description
                </div>
                <p>
                    职位分类：@item.CategoryName</p>
            </div>   
        }
        <div class="add_experiece">
            <b>+</b>@Html.ActionLink("[添加工作经验]", "WorkAdd", new { resumeId = Model.ResumeId, returnUrl = Request.Url.PathAndQuery }, null)</div>
    </div>
    <div class="cr">
    </div>
</div>
